package com.spic.business.alarm.controller;

import com.spic.business.alarm.service.IBianPoAlarmDataService;
import com.spic.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 290512
 * @create 2022-04-09 13:50
 */
@RestController
public class BianPoAlarmDataController {
    @Autowired
    private IBianPoAlarmDataService iBianPoAlarmDataService;

    @GetMapping("bpAlarmList")
    public AjaxResult bpAlarmList(String spsType, String dayType) {
        return AjaxResult.success(iBianPoAlarmDataService.queryDataList(spsType, dayType));
    }

    @GetMapping("bpAlarmRemark")
    public AjaxResult bpAlarmRemark(String dayType) {
        return AjaxResult.success(iBianPoAlarmDataService.bpAlarmRemark(dayType));
    }

}
